let Observer =  require( './Observer.js');

module.exports =  class ObserverType2 extends Observer{
  constructor(id){
    super();
    this.id = id;
    this.data = "undefined content";
  }
  update(data){
    console.log("I am observer type 2 id: " + this.id + ", and I saw the Subject was changed from '" + this.data + "' to '" + data + "'");
    this.data = data;
  }
}